package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IGoodBookRecordDao;
import com.guoxue.domain.GoodBookRecordVo;
import com.guoxue.service.IGoodBookRecordService;

@Service
public class GoodBookRecordServiceImpl implements IGoodBookRecordService{
	
	@Resource
	private IGoodBookRecordDao  goodBookRecordDao;
	
	@Override
	public GoodBookRecordVo getGoodBookRecord(int workId) {
		return goodBookRecordDao.getGoodBookRecord(workId);
	}

	@Override
	public void saveGoodBookRecord(GoodBookRecordVo goodBookRecord) {
		goodBookRecordDao.saveGoodBookRecord(goodBookRecord);
	}

	@Override
	public GoodBookRecordVo getGoodBookRecord(Integer uid, String workId) {
		return goodBookRecordDao.getGoodBookRecord(uid,workId);
	}

	@Override
	public List<GoodBookRecordVo> getGoodBookRecordList(Integer uid) {
		return goodBookRecordDao.getGoodBookRecordList(uid);
	}

	@Override
	public GoodBookRecordVo getGoodBookRecord(Integer uid, String workId, Integer type) {
		return goodBookRecordDao.getGoodBookRecord(uid,workId,type);
	}

	@Override
	public List<GoodBookRecordVo> getGoodBookRecordList(Integer uid, int i) {
		return goodBookRecordDao.getGoodBookRecordList(uid,i);
	}

}
